package network.client;

import java.io.BufferedReader;
import java.io.IOException;

public class ChatReadThread extends Thread {
	
	private BufferedReader reader;
	
	public ChatReadThread(BufferedReader reader) {
		this.reader = reader;
	}
	
	@Override
	public void run() {
		try {
			String dataFromServer = null;
			while ((dataFromServer = reader.readLine()) != null) {
				System.out.println(dataFromServer);
			}
		} catch (IOException e) {
		}
	}
	
}





















